<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>兰天运输管理系统</title>
		<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				margin-right: 0px;
				margin-bottom: 0px;
				overflow: hidden;
			}
			.STYLE3 {
				color: #528311;
				font-size: 12px;
			}
			.STYLE4 {
				color: #42870a;
				font-size: 12px;
			}
		</style>
		<script type="text/javascript">
			document.onkeydown = function(e){
				if(!e) e = window.event;
				if((e.keyCode || e.which) == 13){
					window.form(1);
				}
			}
			function form(i){
				var form = document.forms[0];
				if(i == 1){
					if (form.username.value == ""){
						alert("用户名不能为空.");
						form.username.focus();
						return;
					}
					form.action ="login.action";
					form.submit();
				}else if(i == 0){
					form.reset();
				}
			}
		</script>
	</head>
	<body onselectstart="return false;" oncontextmenu="return false;">
		<table width="100%" height="100%" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td bgcolor="#e5f6cf">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td height="608" background="resource/image/login_03.gif">
					<table width="862" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td height="266" background="resource/image/login_04.gif">
								&nbsp;
							</td>
						</tr>
						<tr>
							<td height="95">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="424" height="95" background="resource/image/login_06.gif">
											&nbsp;
										</td>
										<td width="183" background="resource/image/login_07.gif">
											<table width="100%" border="0" cellspacing="0" cellpadding="0">
												<s:form name="login" theme="simple">
													<tr>
														<td width="21%" height="30">
															<div align="center">
																<span class="STYLE3">用户</span>
															</div>
														</td>
														<td width="79%" height="30">
															<input type="text" name="username"
																style="height: 18px; width: 130px; border: solid 1px #cadcb2; font-size: 12px; color: #81b432;">
														</td>
													</tr>
													<tr>
														<td height="30">
															<div align="center">
																<span class="STYLE3">密码</span>
															</div>
														</td>
														<td height="30">
															<input type="password" name="password"
																style="height: 18px; width: 130px; border: solid 1px #cadcb2; font-size: 12px; color: #81b432;">
														</td>
													</tr>
													<tr>
														<td height="30">
															&nbsp;
														</td>
														<td height="30">
															<img src="resource/image/dl1.gif" style="cursor:pointer" onclick="javascript:form(1);"/>
															<img src="resource/image/dl2.gif" style="cursor:pointer" onclick="javascript:form(0);"/>
														</td>
													</tr>
												</s:form>
											</table>
										</td>
										<td width="255" background="resource/image/login_08.gif">
											&nbsp;
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="247" valign="top" background="resource/image/login_09.gif">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="22%" height="30">
											&nbsp;
										</td>
										<td width="56%">
											&nbsp;
										</td>
										<td width="22%">
											&nbsp;
										</td>
									</tr>
									<tr>
										<td>
											&nbsp;
										</td>
										<td height="30">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="44%" height="20">
														&nbsp;
													</td>
													<td width="56%" class="STYLE4">
														版本 2011 V1.0
													</td>
												</tr>
											</table>
										</td>
										<td>
											&nbsp;
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td bgcolor="#a2d962">
					&nbsp;
				</td>
			</tr>
		</table>
		<s:actionmessage/>
	</body>
</html>